public class Bus extends Automobile {
    private int seatNum;
    public Bus(){
    }
    public Bus(String brand, String plateNumber,int seatNum){
        super(brand, plateNumber);
        this.seatNum = seatNum;
        setDayRentBySeat();
    }
    public int getSeatNum() {
        return seatNum;
    }
    public void setSeatNum(int seatNum) {
        this.seatNum = seatNum;
        setDayRentBySeat();
    }
    protected void setDayRentBySeat() {
        if (getSeatNum() > 16) {
            setDayRent(600);
        } else {
            setDayRent(400);
        }
    }
}
